package server;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;

public class Configuration 
{
	Properties configFile = new java.util.Properties();
	String path;
	
	public Configuration(){
		try {
			configFile.load(new FileInputStream("conf.txt"));			
		}catch(Exception eta){}
	}

	public String getProperty(String key){		
		return configFile.getProperty(key);
	}

	public void setProperty(String key, String value){
		configFile.setProperty(key, value);
		try {
			configFile.store(new FileOutputStream(path), null);
		} catch (Exception e) {}
	}
}